package com.macrounion.atv.service.entity;

import com.macrounion.base.service.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * 用户表user
 * @author Administrator 2020-11-05
 */
@ApiModel(value = "用户表", description = "用户表")
public class User extends BaseEntity implements Serializable {
    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String pwd;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * user
     */
    private static final long serialVersionUID = 1L;

    /**
     * 账号
     * @return 账号
     */
    public String getAccount() {
        return account;
    }

    /**
     *
     * @mbg.generated
     */
    public User withAccount(String account) {
        this.setAccount(account);
        return this;
    }

    /**
     * 账号
     * @param account 账号
     */
    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    /**
     * 密码
     * @return 密码
     */
    public String getPwd() {
        return pwd;
    }

    /**
     *
     * @mbg.generated
     */
    public User withPwd(String pwd) {
        this.setPwd(pwd);
        return this;
    }

    /**
     * 密码
     * @param pwd 密码
     */
    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    /**
     * 姓名
     * @return 姓名
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @mbg.generated
     */
    public User withName(String name) {
        this.setName(name);
        return this;
    }

    /**
     * 姓名
     * @param name 姓名
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", account=").append(account);
        sb.append(", pwd=").append(pwd);
        sb.append(", name=").append(name);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}